﻿using System;
using System.IO;
using System.Security;
namespace Exception4
{
    class Program
    {
        static void Main(string[] args)
        {

        }


        private static char[] ReadSource(string filename)
        {            
            FileInfo file = new FileInfo(filename);
            int length = (int)file.Length;
            char[] source = new char[length];            

            using (TextReader reader = file.OpenText())
            {
                reader.Read(source, 0, length);
            }

            return source;

            //   using will be translated to 
            //   
            //   TextReader reader = file.OpenText();
            //   try
            //   {
            //       reader.Read(source, 0, length);
            //   }
            //   finally
            //   {
            //       if (reader != null)
            //       {
            //           ((IDisposable)reader).Dispose();
            //       }
            //   }
        }
 
    }
}
